package com.teach.food.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.teach.dto.CommentsSearch;
import com.teach.entity.Comments;
import com.teach.exception.CodeException;

public interface CommentsService {
	/**
	 * 行条件搜索查询所有评论
	 * @param commentsSearch
	 * @return
	 * @throws CodeException
	 */
	List<Comments> commentsAllList(CommentsSearch commentsSearch) throws CodeException;
	
	
	List<Comments> list(int startIndex,int len );

	PageInfo<Comments> page(int current,int rowMax);
	
	PageInfo<Comments> pageSearch(CommentsSearch search);
}
